package cn.b.sky.mes.andon.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.b.sky.mes.andon.dao.AndonEventProcessDao;
import cn.b.sky.mes.andon.model.AndonEventProcess;
import cn.b.sky.mes.andon.service.AndonEventProcessService;

/**
 * <strong>Title : AndonEventProcessServiceImpl.java<br></strong>
 * <strong>Package : cn.b.sky.mes.andon.service.impl<br></strong>
 * <strong>Description : </strong>Andon事件流程业务实现类<br> 
 * <strong>Create on : 2016年10月19日 上午10:10:41<br></strong>
 * <p>
 * @author ShiYing.Ke<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人|修改日期|修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
@Service("andonEventProcessService")
public class AndonEventProcessServiceImpl implements AndonEventProcessService {
	
	@Autowired
	AndonEventProcessDao andonEventProcessDao;
	
	@Override
	public List<Map<String, Object>> selectRelAndonEventProcessByServiceId(
			Long serviceId) {
		if(null == serviceId){
			return null;
		}
		List<Map<String, Object>> list = andonEventProcessDao.selectRelAndonEventProcessByServiceId(serviceId);
		return list;
	}

	@Override
	public AndonEventProcess selectAndonEventProcess(
			AndonEventProcess andonEventProcess) {
		AndonEventProcess aep = andonEventProcessDao.selectAndonEventProcess(andonEventProcess);
		return aep;
	}
}
